#!/usr/bin/env python
# coding=utf-8
#发送Email工具

from google.appengine.api import mail
import common

def SendNoticeMail(sucject, body):
	message = mail.EmailMessage(sender='test@gmail.com', subject=sucject)
	message.to = 'test@gmail.com'
	message.body = body
	message.send()

def SendMail(sendto, sucject, body):
	message = mail.EmailMessage(sender='test@gmail.com', subject=sucject)
	message.to = sendto
	message.body = body
	message.send()
